<?php


use Fuel\Core\Controller_Template;

use Fuel\Core\Controller;

class Controller_Base  extends Controller_Template
{
	protected  $name;
	function __construct()
	{
		
	}
	function action_index()
	{
	
	
	
		$query = DB::query('SELECT * from posts');
		$result = $query->execute();
		$data['posts']= $result->as_array();
		//	$data['username'] = 'Joe14';
		//  $data['title'] = 'Home';
		$this->template->title = 'Example CDDDDDDDD';
		//$this->template->content="Tran Thanh An";
		$this->template->content = View::forge('test', $data);
		//return View::forge('template',$data);
	}
}